﻿using System.Xml.Linq;
using IcicleFramework.GameServices;
using IcicleFramework.Inputs;

namespace IcicleFramework.Components.Input
{
    public abstract class BaseInputComponent : BaseComponent, IInputComponent
    {
        protected IInputHandler InputHandler { get; set; }

        public override void Initialize()
        {
            //Grab a reference to the IInputHandler service.
            InputHandler = GameServiceManager.GetService<IInputHandler>();

            base.Initialize();
        }

        protected BaseInputComponent() {}

        protected BaseInputComponent(BaseInputComponent old)
            :base(old)
        {
            this.InputHandler = old.InputHandler;
        }
    }
}
